<%@page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/common/includes.jsp" %>
<html>
<head>
	<title>topic List</title>
	<link rel="stylesheet" href="<c:url value="/res/css/all.css" />" type="text/css" media="screen, projection" />
</head>	
<body>
<%@ include file="/WEB-INF/common/header.jsp" %>
<div class="container">
<div class="containerall">
	<c:if test="${topicVo.pic != null }"><img class="topic_pic_e" src="http://192.168.56.101/image/${topicVo.pic}" /></c:if>
	<a href="${ctx}/topic/${topicVo.id}/editpic" target="_blank">修改图片</a>
	<form:form modelAttribute="topicVo" action="${ctx}/topic/edit" method="post" enctype="multipart/form-data">
		  	<fieldset>		
				<legend></legend>
				<form:hidden path="id"/>
				<p>
					<form:label	for="nameLabel" path="name" cssErrorClass="error">一个名字：</form:label>
					<form:input path="name" /> <form:errors path="name" />
				</p>
				<p>	
					<form:label for="textLabel" path="text" cssErrorClass="error">一段描述：</form:label>
					<form:textarea path="text" htmlEscape="false"/> <form:errors path="text" />
					
				</p>
				<p>	
					<form:label for="tagNamesLabel" path="text" cssErrorClass="error">一些标签：</form:label>
					<form:input path="tagNames" /> <form:errors path="tagNames" />
				</p>
				<p>	
					<input type="submit" />
				</p>
			</fieldset>
		</form:form>
</div>
</div>
<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>